<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:java="http://xml.apache.org/xslt/java"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  exclude-result-prefixes="java"
> 
	<xsl:param name="lang" />

	<xsl:output indent="true" method="xml" />

	<!-- Process the entire document using identity transformation -->
	
	<xsl:template match="/">
		<xsl:apply-templates select="." mode="copyContentDocument" />
    </xsl:template>

	<xsl:template match="* | @* | text()" mode="copyContentDocument">
		<xsl:copy>
			<xsl:apply-templates select="* | @* | text()" mode="copyContentDocument" />
		</xsl:copy>
    </xsl:template>
    
	<xsl:template match="*[@xml:lang and not(@xml:lang = $lang)]" mode="copyContentDocument">
		<xsl:comment>Removed</xsl:comment>
	</xsl:template>
</xsl:stylesheet>